<%--
  Created by IntelliJ IDEA.
  User: Wllove
  Date: 2020/12/23
  Time: 16:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!--图标-->
    <link rel="stylesheet" type="text/css" href="../css/font-awesome.min.css">

    <!--布局框架-->
    <link rel="stylesheet" type="text/css" href="../css/util.css">

    <!--主要样式-->
    <link rel="stylesheet" type="text/css" href="../css/register.css">
</head>
<body>
<div class="register">
    <div class="container-register">
        <div class="wrap-register">
            <form class="register-form validate-form" action="RegisterServlet" method="post">
                <span class="register-form-title">用户注册</span>
                <div class="wrap-input">
                    <input type="text" class="register-input" name="username" placeholder="用户名" required>
                    <span class="focus-input"></span>
                    <span class="symbol-input">
                            <i class="fa fa-user-plus"></i>
                        </span>
                </div>
                <div class="wrap-input validate-input">
                    <input type="text" class="register-input" name="userPhone" placeholder="电话号码" required>
                    <span class="focus-input"></span>
                    <span class="symbol-input">
                            <i class="fa fa-phone"></i>
                        </span>
                </div>
                <div class="wrap-input validate-input">
                    <input type="text" class="register-input" name="userEmail" placeholder="邮箱" required>
                    <span class="focus-input"></span>
                    <span class="symbol-input">
                            <i class="fa fa-envelope-o"></i>
                        </span>
                </div>
                <div class="wrap-input validate-input">
                    <input type="password" class="register-input" name="Password1" placeholder="密码" required>
                    <span class="focus-input"></span>
                    <span class="symbol-input">
                            <i class="fa fa-lock"></i>
                        </span>
                </div>
                <div class="wrap-input validate-input">
                    <input type="password" class="register-input" name="Password2" placeholder="再次确认密码" required>
                    <span class="focus-input"></span>
                    <span class="symbol-input">
                            <i class="fa fa-lock"></i>
                        </span>
                </div>
                <div class="container-register-form-btn">
                    <button class="register-form-btn">注册</button>
                </div>
            </form>
        </div>
    </div>

</div>
</body>
<script>
    var error1 ='<%=request.getParameter("error1")%>';
    var error2 ='<%=request.getParameter("error2")%>';
    if(error1 == 'yes'){
        alert("密码不一致");
    }
    if(error2 == 'yes'){
        alert("注册失败");
    }
</script>
</html>
